package site.luojie.service.provider.impl;

import site.luojie.service.api.WorkService;

import java.util.Random;

/**
 * @author jie.luo
 * @since 2020/8/31
 */
public class WorkServiceImpl implements WorkService {
    @Override
    public String doWork(String work) {
        try {
            Thread.sleep(new Random().nextInt(100));
        } catch (Exception e) {

        }
        return "do work " + work;
    }

    @Override
    public String doWork1(String work) {
        try {
            Thread.sleep(new Random().nextInt(100));
        } catch (Exception e) {

        }
        return "do work1 " + work;
    }

    @Override
    public String doWork2(String work) {
        try {
            Thread.sleep(new Random().nextInt(100));
        } catch (Exception e) {

        }
        return "do work2 " + work;
    }
}
